package com.example.factory.absfactory.demo1;

import com.example.factory.absfactory.demo1.factory.BusinessCarFactory;
import com.example.factory.absfactory.demo1.factory.CarAbstractFactory;
import com.example.factory.absfactory.demo1.product.AudiCar;

/**
 *
 * @author zhoubin
 *
 * @createDate 2017年7月13日 下午10:53:59
 */
public class Test {

	public static void main(String[] args) throws Exception {
		CarAbstractFactory d1 = new BusinessCarFactory();
		AudiCar audiCar = d1.createAudiCar("audi");
		audiCar.setName("audi");
		audiCar.drive();
	}
}
